package com.xc.stock.utils;

import org.hibernate.dialect.MySQL5Dialect;
import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.type.StandardBasicTypes;

/**
 * 
 * title: CustomMysqlDialect.java MYSQL 函数增强
 * 
 * @author rplees
 * @email rplees.i.ly@gmail.com
 * @version 1.0
 * @created Jul 31, 2020 1:22:58 PM
 */
public class CustomMysqlDialect extends MySQL5Dialect {
	public CustomMysqlDialect() {
		super();
		this.registerFunction("group_concat", new SQLFunctionTemplate(StandardBasicTypes.STRING, "group_concat(?1)"));
	}
}
